package com.yuncheng.spcyApi.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuncheng.spcyApi.entity.SpcyKpYbjcy;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuncheng.vo.CurrentUserVo;
import com.yuncheng.spcyApi.vo.common.OrderItemVo;
import com.yuncheng.spcyApi.vo.flow.YbjcyFlowVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 审评查验-预备检查员考评
 * @Author: yuncheng
 * @Date: 2023-04-11
 * @Version: V1.0
 */
public interface SpcyKpYbjcyMapper extends BaseMapper<SpcyKpYbjcy> {
    Page<YbjcyFlowVo> flowJobPage(Page<YbjcyFlowVo> page,
                                  @Param("onlyCurrentUser") boolean onlyCurrentUser,
                                  @Param("user") CurrentUserVo user,
                                  @Param("flowVo") YbjcyFlowVo ybjcyFlowVo);

    Page<YbjcyFlowVo> flowJkPage(Page<YbjcyFlowVo> page,
                                 @Param("onlyCurrentUser") boolean onlyCurrentUser,
                                 @Param("user") CurrentUserVo user,
                                 @Param("flowVo") YbjcyFlowVo ybjcyFlowVo);

    // 见习考评-流程待办列表-分页查询
    Page<YbjcyFlowVo> selectFlowJobPage(Page<YbjcyFlowVo> page,
                                        @Param("userid") String userid,
                                        @Param("flowVo") YbjcyFlowVo ybjcyFlowVo,
                                        @Param("orderBean") OrderItemVo orderItemVo);

    // 我的已办流程列表
    Page<YbjcyFlowVo> selectYbFlowJobPage(Page<YbjcyFlowVo> page,
                                        @Param("userid") String userid,
                                        @Param("flowVo") YbjcyFlowVo ybjcyFlowVo,
                                        @Param("orderBean") OrderItemVo orderItemVo);

    // 见习考评查询
    Page<YbjcyFlowVo> selectJxkpcxPageList(Page<YbjcyFlowVo> page,
                                          @Param("userid") String userid,
                                          @Param("flowVo") YbjcyFlowVo ybjcyFlowVo,
                                          @Param("orderBean") OrderItemVo orderItemVo);

    /** 查询见习考评id - 根据申请事项id */
    List<String> selectIdListByFsqsxid(@Param("sqsxid") String sqsxid);
}
